-
Notifications
You must be signed in to change notification settings - Fork 6
improved benchmark suite #25
base: master
Are you sure you want to change the base?
Conversation
@maditya , please review. thanks. |
CLA is valid! |
👍 |
The usage would need an update. Everything else is good. |
39e1b5b
to
372dac9
Compare
this is ready for another round of review. @maditya / @yukinying , thanks. |
// }) | ||
.on('cycle', function(event) { | ||
console.log(String(event.target)); | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you need to dump event.target to console log?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this shows the intermediate results of every test. now we have only one test, but we'll have more...
if that onCycle dump is commented. nothing will show up until everything is completed. that'd look like hanged...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in other words, if that is omitted, we will miss something like below
default x 0.64 ops/sec ±5.90% (6 runs sampled)
but will only see:
Fastest is [ 'default' ]
Speed/Time is 0.6423016849725829MB/s 1.5567777936666667s
use
benchmark
for benchmarking